<?php foreach( $module->posts as $blog ): ?>
  <li>
    <?php if($blog->cover()): ?>
    <a href="/<?php echo $blog->url() ?>">
      <img src="<?= $blog->cover() ?>">
    </a>
    <?php endif ?>
    <a href="/<?php echo $blog->url() ?>">
      <p><?= $blog->title() ?>
        <?php if( $blog->eventdate()): ?><time><?= date( 'M jS, Y', strtotime( $blog->eventdate())) ?></time><?php endif ?>
      </p>
    </a>
  </li>
<?php endforeach ?>
